package com.ruoyi.dynamic.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.dynamic.model.pojo.entity.RoomNotice;
import com.ruoyi.dynamic.model.pojo.request.app.AppRoomNoticeAddOrEditRequest;
import com.ruoyi.dynamic.model.pojo.request.app.AppRoomNoticePushRequest;

import java.util.List;

/**
 * <p>
 * 房间公告 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-11-28
 */
public interface IRoomNoticeService extends IService<RoomNotice> {

    /**
     * 查询房间公告
     * @param roomId
     * @param userId
     * @return
     */
    List<RoomNotice> listPage(Long roomId, Long userId);

    /**
     * 添加编辑房间公告
     * @param request
     * @param userId
     * @return
     */
    boolean addOrEdit(AppRoomNoticeAddOrEditRequest request, Long userId);

    /**
     * 删除公告
     * @param id
     * @param userId
     * @return
     */
    boolean del(Long id, Long userId);

    /**
     * 发布此公告
     */
    void publish(AppRoomNoticePushRequest request, Long userId);

}
